function my_colortrunk(ColorMap,opt)
% my_colortrunk(ColorMap,'Reserve',true);
% --------------------------------------
% custom function to load custom colormap
% ColorMap list:
% 	NEO_modis_lst: land surface temperature
% 		cold -> warm, blue - red - yellow
% 	NEO_trmm_rainfall: rainfall, precipitation
% 		little -> much, white - blue
% 	IPCC_chem_div: Cflux
% 		nega -> posi, purple -> green
% 		
% 	
%
	arguments
		ColorMap string
		opt.Reverse = false
	end

	% get path of custom colormaps
	if gethostname() == "gamenote"
		Path = '/home/sidpku/git-repo/matlab-scripts/colortrunk';
	else
		error('Path of colormaps not set!');
	end

	% load colormap
	file_name = strcat(ColorMap,'.mat');
	file_path = fullfile(Path,file_name);
	ColorMap = my_getMatVar(file_path, 'ColorMap');

	% if reverse
	if opt.Reverse
		ColorMap = flipud(ColorMap);
	end

	% set colormap
	colormap(ColorMap);
end


function out = gethostname()
	% function to get name of host
	[~, name] = system('hostname');
	out = name(1:end-1);
end
